<?php
$str = "Demon is an English teacher.17847564092";
echo "删除前的长度是：", strlen( $str );
echo "<br>";
$str1 = rtrim( $str, '0..9' );
echo $str1, "<br>";
echo "删除前后长度为:", strlen( $str1 );